package com.css.fxfzypg.modules.baseData.service;

import com.alibaba.fastjson.JSONObject;
import com.css.fxfzypg.base.response.RestResponse;
import com.css.fxfzypg.modules.baseData.entity.CountiesCondition;
import com.css.fxfzypg.modules.baseData.queryParams.CountiesConditionQueryParams;
import com.css.fxfzypg.modules.baseData.vo.CountiesConditionVO;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface CountiesConditionService {
    RestResponse updateCountiesCondition(CountiesCondition countiesCondition);

    RestResponse saveCountiesCondition(CountiesCondition countiesCondition);

    JSONObject getAllCountiesCondition(CountiesConditionQueryParams queryParams, int curPage, int pageSize);

    CountiesConditionVO getCountiesConditionById(String id);

    void deleteCountiesConditions(String id);

    //下载表中内容
    List<CountiesCondition> getAll();

    //导入内容
    RestResponse importExcel(MultipartFile file) throws IOException;

    RestResponse excelImport(MultipartFile file)throws Exception;

    void cover(List<CountiesCondition> conditions);

    Integer countByCounty(String province, String city, String county);
    Integer countByCity(String province, String city);
    Integer countByProvince(String province);

}
